﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master"  AutoEventWireup="true" CodeFile="Individual.aspx.cs" Inherits="CheckOverTime_Individual" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div>
        <table align="center" style="width: 522px">
            <tr>
                <td colspan="3">
                    <asp:Panel ID="Panel2" runat="server" Height="24px" Visible="False" Width="353px">
                        请选择要查询的部门：<asp:DropDownList ID="cmbDeptList" runat="server" Width="127px" OnSelectedIndexChanged="cmbDeptList_SelectedIndexChanged" AutoPostBack="True">
                        </asp:DropDownList></asp:Panel>
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    选择要查询的员工：<asp:DropDownList ID="cmbEmpList" runat="server" Width="143px" OnSelectedIndexChanged="cmbEmpList_SelectedIndexChanged">
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td style="width: 218px; height: 26px">
                    开始时间：<asp:TextBox ID="txtStartTime" runat="server" Width="118px"></asp:TextBox></td>
                <td colspan="2" style="width: 229px; height: 26px">
                    结束时间：<asp:TextBox ID="txtEndTime" runat="server" Width="128px"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="width: 218px">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtStartTime"
                        ErrorMessage="开始时间不能为空"></asp:RequiredFieldValidator></td>
                <td colspan="2" style="width: 229px; color: #000000">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtEndTime"
                        ErrorMessage="结束时间不能为空"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td rowspan="3" style="width: 218px">
                    <asp:RadioButtonList ID="RadioButtonList1" runat="server" Height="77px" Width="163px">
                        <asp:ListItem Value="0">只显示全部</asp:ListItem>
                        <asp:ListItem Value="1">只显示折算成年假的纪录</asp:ListItem>
                        <asp:ListItem Value="2">只显示折算成津贴的纪录</asp:ListItem>
                    </asp:RadioButtonList></td>
                <td colspan="2" rowspan="5" style="width: 229px">
                </td>
            </tr>
            <tr>
            </tr>
            <tr>
            </tr>
            <tr>
                <td colspan="3" style="height: 22px">
                    &nbsp;<asp:Button ID="btnSearch" runat="server" Text="搜索" OnClick="btnSearch_Click" /></td>
            </tr>
            <tr>
                <td colspan="3" style="height: 22px">
                    <asp:Panel ID="Panel1" runat="server" Height="50px" Visible="False" Width="316px">
                        审批者：<asp:Label ID="lblApproverName" runat="server" Width="113px"></asp:Label><br />
                        加班事由：<asp:Label ID="lblReason" runat="server" Width="228px"></asp:Label><br />
                        否决事由：<asp:Label ID="lblDenyReason" runat="server" Width="228px"></asp:Label></asp:Panel>
                </td>
            </tr>
            <tr>
                <td colspan="3" rowspan="2">
                    <asp:GridView ID="grdResult" runat="server" AutoGenerateColumns="False" BackColor="White"
                        BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black"
                        GridLines="Vertical" Width="513px" OnRowCommand="grdResult_RowCommand" OnSelectedIndexChanged="grdResult_SelectedIndexChanged">
                        <FooterStyle BackColor="#CCCC99" />
                        <Columns>
                            <asp:BoundField HeaderText="开始时间" DataField="StartTime" />
                            <asp:BoundField HeaderText="结束时间" DataField="EndTime" />
                            <asp:BoundField HeaderText="提交时间" DataField="SubmitTime" />
                            <asp:ButtonField HeaderText="类型" DataTextField="TypeName" />
                            <asp:BoundField HeaderText="状态" DataField="Status" />
                            <asp:BoundField HeaderText="小时数" DataField="Hours" />
                            <asp:ButtonField Text="详细情况..." HeaderText="详细情况" CommandName="Select" />
                        </Columns>
                        <RowStyle BackColor="#F7F7DE" />
                        <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                        <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
            </tr>
        </table>
        <asp:Label ID="lblMessage" runat="server" Text="对不起，该网页属经理专用，请访问其他网页！" Visible="False"
            Width="358px"></asp:Label>
    
    </div>
</asp:Content>